home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 109
/
Vol 109.iso
/
games
/
javelin.swf
/
scripts
/
frame_101
/
DoAction.as
Wrap
Text File
|
2008-11-12
|
45KB
|
1,441 lines
function PRSFndStr(str, fstr)
{
var _loc5_ = true;
var _loc4_ = false;
var _loc2_ = 0;
var _loc1_ = 0;
while(_loc5_)
{
_loc4_ = true;
_loc1_ = 0;
while(_loc1_ < fstr.length)
{
if(str.charAt(_loc1_ + _loc2_) != fstr.charAt(_loc1_))
{
_loc4_ = false;
}
_loc1_ = _loc1_ + 1;
}
if(_loc4_ == true)
{
_loc5_ = false;
}
else
{
_loc2_ = _loc2_ + 1;
}
if(_loc2_ + fstr.length > str.length)
{
_loc5_ = false;
_loc2_ = -1;
}
}
return _loc2_;
}
function startGame()
{
_root.o_menu.defclip._visible = false;
var i = 0;
var tm;
_root.cground.attachMovie("nL2_sneg","frame0",1003);
_root.cground.attachMovie("nL2_sneg","frame1",1002);
_root.cground.attachMovie("nL2_sneg","frame2",1001);
i = 0;
while(i < 3)
{
_root.o_frm[i] = eval("_root.cground.frame" + i);
i++;
}
_root.cground.attachMovie("nfinline","ilbr",1161);
_root.o_lnb = _root.cground.ilbr;
_root.o_lnb._width *= 1.8;
_root.o_lnb._height *= 1.8;
_root.o_lnb._x = POS_LNB;
_root.o_lnb._y = 330;
_root.o_lnb.ofire._visible = false;
var un = [];
var h = 1;
var g;
un[0] = Math.floor(Math.random() * 3) + 1;
i = 1;
while(i < 20)
{
do
{
h = Math.floor(Math.random() * 3) + 1;
}
while(un[i - 1] == h);
un[i] = h;
i++;
}
var j = 0;
while(j < 3)
{
i = 0;
while(i < 2)
{
_root.o_frm[j].attachMovie("nboard_gr_" + un[i],"ibackgr_" + i,10 + i);
_root.o_brd[10 * j + i] = eval("_root.cground.frame" + j + ".ibackgr_" + i);
_root.o_brd[10 * j + i]._width *= CS;
_root.o_brd[10 * j + i]._height *= CS;
_root.o_brd[10 * j + i]._x = i * 64 * CS;
_root.o_brd[10 * j + i]._y = Math.floor(Math.random() * 15) - 284 + 158 * CS;
i++;
}
j++;
}
_root.SetRandPlanks();
i = 0;
while(i < 3)
{
_root.o_frm[i].attachMovie("nplanka","iplanka_" + i,26 + i);
_root.o_plk[i] = eval("_root.cground.frame" + i + ".iplanka_" + i);
_root.o_plk[i]._width *= CS;
_root.o_plk[i]._height *= CS;
_root.o_plk[i]._x = 0;
_root.o_plk[i]._y = -114;
i++;
}
i = 0;
while(i < 3)
{
_root.o_frm[i].attachMovie("ngrd_" + (i + 1),"igrd_" + i,50 + i);
_root.o_gr[i] = eval("_root.cground.frame" + i + ".igrd_" + i);
_root.o_gr[i]._width *= CS;
_root.o_gr[i]._height *= CS;
_root.o_frm[i]._y = 284;
_root.o_frm[i]._x = i * 320 * CS;
i++;
}
_root.cground.attachMovie("nline_hide_javel","ilhj",1401);
_root.o_ln_hide = _root.cground.ilhj;
_root.o_ln_hide._width = 550;
_root.o_ln_hide._height *= CS;
_root.o_ln_hide._y = 284;
_root.o_ln_hide._x = 0;
_root.o_ln_hide._visible = false;
_root.cground.attachMovie("ntbl_res1","itbl_1",1028);
_root.o_tbl[0] = _root.cground.itbl_1;
_root.o_tbl[0]._width = _root.o_tbl[0]._width * CS * 1.4;
_root.o_tbl[0]._height = _root.o_tbl[0]._height * CS * 1.4;
_root.o_tbl[0]._x = 30;
_root.o_tbl[0]._y = 150;
_root.o_tbl[0].gotoAndStop(1);
_root.cground.attachMovie("ntbl_res2","itbl_2",1029);
_root.o_tbl[1] = _root.cground.itbl_2;
_root.o_tbl[1]._width = _root.o_tbl[1]._width * CS * 1;
_root.o_tbl[1]._height = _root.o_tbl[1]._height * CS * 1;
_root.o_tbl[1]._x = 270;
_root.o_tbl[1]._y = 145;
_root.cground.attachMovie("ntblt_3","itbl_3",1030);
_root.o_tbl[2] = _root.cground.itbl_3;
_root.o_tbl[2]._width = _root.o_tbl[2]._width * CS * 1;
_root.o_tbl[2]._height = _root.o_tbl[2]._height * CS * 1;
_root.o_tbl[2]._x = 600;
_root.o_tbl[2]._y = 175;
var my_mcl = new MovieClipLoader();
myListener = new Object();
my_mcl.addListener(myListener);
_root.o_tbl[2].cload._visible = false;
_root.o_tbl[2].cdflt.stop();
_root.o_menu.topline1._visible = false;
_root.o_menu.topline2._visible = false;
var my_mcl1 = new MovieClipLoader();
myListener1 = new Object();
my_mcl1.addListener(myListener1);
my_mcl1.onLoadComplete = function(success)
{
_root.topclip_def = 0;
};
var data_val = new String();
var tmpstr = new String();
tmpstr = "";
var allstr = new String();
allstr = "";
var pogoda = new LoadVars();
pogoda.onLoad = function(success)
{
if(success == false)
{
return undefined;
}
_root.topclip_def = 0;
_root.topclip_3data = 1;
data_val = pogoda.toString();
var _loc2_ = new Integer();
_loc2_ = PRSFndStr(data_val,"%3CBODY%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_);
_loc2_ = 0;
_loc2_ = PRSFndStr(data_val,"%3CB%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_ + 7);
_loc2_ = PRSFndStr(data_val,"%3C%2FB%3E");
if(_loc2_ == -1)
{
return undefined;
}
tmpstr = data_val.slice(0,_loc2_);
allstr = unescape(tmpstr) + unescape("%0D");
_root.o_menu.strt1 = allstr;
_loc2_ = PRSFndStr(data_val,"%3C%2FB%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_ + 10);
_loc2_ = PRSFndStr(data_val,"%3C%2FB%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_ + 10);
_loc2_ = PRSFndStr(data_val,"%3CB%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_ + 7);
_loc2_ = PRSFndStr(data_val,"%3C%2FB%3E");
if(_loc2_ == -1)
{
return undefined;
}
tmpstr = data_val.slice(0,_loc2_);
allstr = "1st Place: ";
allstr += unescape(tmpstr) + unescape("%0D");
_root.o_menu.strt2 = allstr;
_loc2_ = PRSFndStr(data_val,"%3C%2FB%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_ + 10);
_loc2_ = PRSFndStr(data_val,"%3C%2FB%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_ + 10);
_loc2_ = PRSFndStr(data_val,"%3CB%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_ + 7);
_loc2_ = PRSFndStr(data_val,"%3C%2FB%3E");
if(_loc2_ == -1)
{
return undefined;
}
tmpstr = data_val.slice(0,_loc2_);
allstr = "2nd Place: ";
allstr += unescape(tmpstr) + unescape("%0D");
_root.o_menu.strt3 = allstr;
_loc2_ = PRSFndStr(data_val,"%3C%2FB%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_ + 10);
_loc2_ = PRSFndStr(data_val,"%3C%2FB%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_ + 10);
_loc2_ = PRSFndStr(data_val,"%3CB%3E");
if(_loc2_ == -1)
{
return undefined;
}
data_val = data_val.slice(_loc2_ + 7);
_loc2_ = PRSFndStr(data_val,"%3C%2FB%3E");
if(_loc2_ == -1)
{
return undefined;
}
tmpstr = data_val.slice(0,_loc2_);
allstr = "3rd Place: ";
allstr += unescape(tmpstr);
_root.o_menu.strt4 = allstr;
};
un[0] = Math.floor(Math.random() * 12) + 1;
i = 0;
while(i < 12)
{
do
{
h = Math.floor(Math.random() * 12) + 1;
}
while(un[i - 1] == h);
un[i] = h;
i++;
}
var k = 0;
var j = 0;
while(j < 3)
{
i = 0;
while(i < 3)
{
_root.o_frm[j].attachMovie("nmus_" + un[k],"imsr_" + k,65 + k);
_root.o_msr[k] = eval("_root.cground.frame" + j + ".imsr_" + k);
_root.o_msr[k]._width *= CS;
_root.o_msr[k]._height *= CS;
_root.o_msr[k]._x = _root.pos_mus[i].x;
_root.o_msr[k]._y = _root.pos_mus[i].y;
k++;
i++;
}
j++;
}
_root.cground.attachMovie("nrat","irat",1200);
_root.o_rat = _root.cground.irat;
_root.o_rat._width *= CS;
_root.o_rat._height *= CS;
_root.o_rat._x = 300 * CS;
_root.o_rat._y = 310;
_root.o_rat.body_brs._visible = false;
_root.o_rat.body_run._visible = false;
_root.cground.attachMovie("njavelin","ijav",1400);
_root.o_jav = _root.cground.ijav;
_root.o_jav._width *= CS;
_root.o_jav._height *= CS;
_root.o_jav._x = 318;
_root.o_jav._y = 322;
_root.o_jav._rotation = 90;
_root.o_jav._visible = false;
_root.c_rat.SetDefault();
_root.c_jav.SetDefault();
i = 0;
while(i < 3)
{
_root.o_frm[i].attachMovie("nmouse_ballon","ims_ballon" + i,255 + i);
_root.o_msb[i] = eval("_root.cground.frame" + i + ".ims_ballon" + i);
_root.o_msb[i]._width *= CS;
_root.o_msb[i]._height *= CS;
_root.o_msb[i]._y = -191;
_root.o_msb[i]._x = 0;
_root.o_msb[i]._visible = false;
i++;
}
i = 0;
while(i < 3)
{
_root.o_frm[i].attachMovie("nballon","iballon" + i,1260 + i);
_root.o_bln[i] = eval("_root.cground.frame" + i + ".iballon" + i);
_root.o_bln[i]._width *= CS;
_root.o_bln[i]._height *= CS;
_root.o_bln[i]._y = -250;
_root.o_bln[i]._x = 50;
_root.o_bln[i]._visible = false;
_root.o_bln[i].gotoAndStop(2);
i++;
}
_root.cground.attachMovie("nrat_score","irat_score",1460);
_root.o_rsr = _root.cground.irat_score;
_root.o_rsr._width *= CS;
_root.o_rsr._height *= CS;
_root.o_rsr._y = 375;
_root.o_rsr._x = -70;
_root.o_rsr.gotoAndStop("stoprat");
var nn = [-40,-80,-100,-135,-200];
var nn2 = [-70,450,190,320,60];
i = 0;
while(i < 5)
{
_root.cground.attachMovie("ncloud","icloud" + i,270 + i);
_root.o_cld[i] = eval("_root.cground.icloud" + i);
_root.o_cld[i]._width *= 1.5;
_root.o_cld[i]._height = _root.o_cld[i]._height;
_root.o_cld[i]._y = nn[i];
_root.o_cld[i]._x = nn2[i] + Math.floor(Math.random() * 100);
i++;
}
var wwe = ["nf_Egg","nf_Tomato","nf_Tomato","nf_Egg","nf_Tomato","nf_Egg","nf_Tomato","nf_Tomato","nf_Egg","nf_Tomato"];
var u = 0;
i = 0;
while(i < 10)
{
if(i > 4)
{
u = 1010;
}
_root.cground.attachMovie(wwe[i],"i" + wwe[i] + i,370 + i + u);
_root.o_etm[i] = eval("_root.cground.i" + wwe[i] + i);
_root.o_etm[i]._y = 550;
_root.o_etm[i].gotoAndPlay(1 + Math.floor(Math.random() * 25));
_root.o_etm[i].stop();
i++;
}
var wwe = ["nFlower_1","nFlower_2","nFlower_3","nFlower_4","nFlower_5","nFlower_1","nFlower_2","nFlower_3","nFlower_4","nFlower_5"];
var u = 0;
i = 0;
while(i < 10)
{
if(i > 4)
{
u = 1021;
}
_root.cground.attachMovie(wwe[i],"i" + wwe[i] + "" + i,381 + i + u);
_root.o_flw[i] = eval("_root.cground.i" + wwe[i] + i);
_root.o_flw[i]._y = 500;
_root.o_flw[i].gotoAndPlay(1 + Math.floor(Math.random() * 25));
_root.o_flw[i].stop();
i++;
}
_root.SetRatLenta();
_root.o_menu.gotoAndStop(5);
_root.o_rcd._visible = false;
_root.o_rpr.gotoAndStop(1);
_root.c_menu.state = 1;
}
function OnTimer()
{
if(_root.fbnr == 0)
{
_root.fbnr = 1;
_root.o_tbl[2].cload.stop();
_root.o_tbl[2].cload._visible = false;
_root.o_tbl[2].cdflt._visible = true;
_root.o_menu.omenu_top._visible = false;
}
if(_root.state_bras == 1)
{
var _loc2_ = 0;
while(_loc2_ < 5)
{
if(_root.o_etm[_loc2_]._y > -100)
{
_root.o_etm[_loc2_]._y -= 15;
}
_loc2_ = _loc2_ + 1;
}
_loc2_ = 5;
while(_loc2_ < 10)
{
if(_root.etm_endfall[_loc2_ - 5] != 0)
{
if(_root.o_etm[_loc2_]._y < _root.etm_endfall[_loc2_ - 5])
{
_root.o_etm[_loc2_]._y += 15;
}
else
{
_root.etm_endfall[_loc2_ - 5] = 0;
_root.o_etm[_loc2_].gotoAndStop("brok");
}
}
_loc2_ = _loc2_ + 1;
}
}
else if(_root.state_bras == 2)
{
_loc2_ = 0;
while(_loc2_ < 5)
{
if(_root.o_flw[_loc2_]._y > -100)
{
_root.o_flw[_loc2_]._y -= 15;
}
_loc2_ = _loc2_ + 1;
}
_loc2_ = 5;
while(_loc2_ < 10)
{
if(_root.etm_endfall[_loc2_ - 5] != 0)
{
if(_root.o_flw[_loc2_]._y < _root.etm_endfall[_loc2_ - 5])
{
_root.o_flw[_loc2_]._y += 15;
}
else
{
_root.etm_endfall[_loc2_ - 5] = 0;
_root.o_flw[_loc2_].stop();
}
}
_loc2_ = _loc2_ + 1;
}
}
if(_root.c_menu.state == 1)
{
return undefined;
}
if(_root.o_lnb._visible == true && (_root.o_lnb._x > 650 || _root.o_lnb._x < -150))
{
_root.o_lnb._visible = false;
}
else if(_root.o_lnb._visible == false && (_root.o_lnb._x < 650 && _root.o_lnb._x > -150))
{
_root.o_lnb._visible = true;
}
if(_root.state == 0)
{
if(_root.o_rat._currentframe == 1)
{
var _loc7_ = Number;
_loc7_ = Math.floor(Math.random() * 30);
if(_loc7_ == 1)
{
_loc7_ = Math.floor(Math.random() * 6) + 1;
if(_loc7_ > 4)
{
_loc7_ = 1;
}
_root.o_rat.gotoAndPlay("a_" + _loc7_);
}
}
}
var _loc3_ = Math.round(_root.c_rat.step_dx);
if(_root.state == 1 || _root.state == 2)
{
_loc2_ = 0;
while(_loc2_ < 3)
{
_root.o_frm[_loc2_]._x -= _loc3_;
_loc2_ = _loc2_ + 1;
}
_root.o_rsr._x -= _loc3_;
_root.o_tbl[0]._x -= _loc3_;
_root.o_tbl[1]._x -= _loc3_;
_root.o_tbl[2]._x -= _loc3_;
_loc2_ = 0;
while(_loc2_ < 5)
{
_root.o_cld[_loc2_]._x -= _loc3_;
if(_root.o_cld[_loc2_]._x < -200)
{
_root.o_cld[_loc2_]._x = 600;
}
_loc2_ = _loc2_ + 1;
}
if(_root.o_rat._currentframe == 66 && _root.c_rat.leg_run == false)
{
_root.c_rat.leg_run = true;
_root.c_rat.chg_frm = 10;
_root.c_rat.id_nf = 1;
_root.o_rat.legs_run.stop();
_root.o_rat.body_run.stop();
_root.c_rat.cnt_tikrun = 0;
}
if(_root.c_rat.leg_run == true)
{
_root.c_rat.dx_usk += _root.c_rat.ADD_TO_USK;
_root.c_rat.now_frm += _root.c_rat.dx_usk;
if(Math.round(_root.c_rat.now_frm) > 8)
{
_root.c_rat.now_frm = 0;
}
var _loc20_ = Math.round(_root.c_rat.now_frm);
_root.o_rat.legs_run.gotoAndStop("f_" + _loc20_);
if(_root.state == 1)
{
_root.o_rat.body_run.gotoAndStop("f_" + _loc20_);
}
}
_root.o_lnb._x -= _loc3_;
_root.c_rat.pxl_run += _loc3_;
if(_root.c_rat.pxl_run >= _root.c_rat.LNG_RUN)
{
var _loc15_ = undefined;
var _loc19_ = undefined;
var _loc18_ = undefined;
_loc15_ = _root.c_rat.minV[_root.c_rat.rtype];
_loc19_ = _root.c_rat.minF[_root.c_rat.rtype];
_loc18_ = _root.c_rat.minD[_root.c_rat.rtype];
if(_root.c_rat.VV - _loc15_ >= _root.c_rat.stV[_root.c_rat.rtype])
{
_root.c_rat.VV -= _loc15_;
}
else
{
_root.c_rat.VV = _root.c_rat.stV[_root.c_rat.rtype];
}
if(_root.c_rat.DD - _loc18_ >= _root.c_rat.stD[_root.c_rat.rtype])
{
_root.c_rat.DD -= _loc18_;
}
else
{
_root.c_rat.DD = _root.c_rat.stD[_root.c_rat.rtype];
}
if(_root.c_rat.FF - _loc19_ >= _root.c_rat.stF[_root.c_rat.rtype])
{
_root.c_rat.FF -= _loc19_;
}
else
{
_root.c_rat.FF = _root.c_rat.stF[_root.c_rat.rtype];
}
_root.state = 3;
_root.o_lnb.ofire._visible = true;
_root.o_lnb.ofire.gotoAndPlay(1);
}
_root.c_rat.onTimer();
}
if(_root.state == 5)
{
_root.c_rat.length_fly += _root.c_jav.dx;
var _loc24_ = Math.floor(89 - u);
var _loc25_ = Math.floor(Math.sqrt(_root.c_rat.FF + _root.c_rat.spd_V * _root.c_rat.spd_V));
var _loc27_ = _loc25_ * Math.sin(_loc24_ / 180 * 3.14) * 0.7;
var _loc29_ = _root.c_jav.fulltime - _root.c_jav.timefly;
_root.c_jav.start_vy -= G;
var _loc9_ = true;
_loc2_ = 0;
while(_loc2_ < 3)
{
_root.o_frm[_loc2_]._x -= _root.c_jav.dx;
if(_root.o_frm[_loc2_]._y + _root.c_jav.start_vy >= 284)
{
_root.o_frm[_loc2_]._y += _root.c_jav.start_vy;
}
else
{
_root.o_frm[_loc2_]._y = 284;
_loc9_ = false;
}
_loc2_ = _loc2_ + 1;
}
_root.o_tbl[0]._x -= _root.c_jav.dx;
_root.o_tbl[1]._x -= _root.c_jav.dx;
_root.o_tbl[0]._y += _root.c_jav.start_vy;
_root.o_tbl[1]._y += _root.c_jav.start_vy;
_root.o_tbl[2]._x -= _root.c_jav.dx;
_root.o_tbl[2]._y += _root.c_jav.start_vy;
_root.o_rsr._x -= _root.c_jav.dx;
_root.o_rsr._y += _root.c_jav.start_vy;
_loc2_ = 0;
while(_loc2_ < 5)
{
_root.o_cld[_loc2_]._y += _root.c_jav.start_vy;
_root.o_cld[_loc2_]._x -= _root.c_jav.dx;
if(_root.o_cld[_loc2_]._x < -200)
{
_root.o_cld[_loc2_]._x = 600;
}
_loc2_ = _loc2_ + 1;
}
if(_loc9_ == true)
{
_root.o_rat._y += _root.c_jav.start_vy;
_root.o_lnb._y += _root.c_jav.start_vy;
}
else
{
_root.o_rat._y = 310;
_root.o_lnb._y = 330;
var _loc16_ = 0;
if(_root.c_jav.angle > 70)
{
_loc16_ = 10;
}
if(_root.o_jav._y + _root.c_jav.angle - 14 - _loc16_ < 362)
{
_root.o_jav._y += _root.c_jav.angle - 14 - _loc16_;
}
_root.o_ln_hide._visible = true;
}
_root.o_rat._x -= _root.c_jav.dx;
_root.o_lnb._x -= _root.c_jav.dx;
_root.c_jav.next_point -= _root.c_jav.dx;
if(_root.c_jav.next_point <= -3 + 77.5 * Math.cos((80 - _root.o_jav._rotation) / 180 * 3.14) + _root.o_jav._x)
{
_root.c_jav.cnt_frm = _root.c_jav.cnt_frm + 1;
_root.c_jav.next_point += CS * 320;
}
if(_root.c_jav.timefly > 0)
{
_root.c_jav.timefly--;
if(_root.c_jav.timefly <= 0)
{
_root.o_tbl[2]._y = 175;
var _loc10_ = _root.o_jav._x + 77.5 * Math.cos((80 - _root.o_jav._rotation) / 180 * 3.14);
_root.c_jav.xkon = _root.o_jav._x + 77.5 * Math.cos((80 - _root.o_jav._rotation) / 180 * 3.14);
_root.c_rat.last_bras = _root.c_jav.xkon;
_loc7_ = 2;
while(_root.o_frm[_root.ar_mv[_loc7_]]._x + 60 > _loc10_)
{
_loc7_ = _loc7_ - 1;
}
var _loc12_ = (_loc10_ - (_root.o_frm[_root.ar_mv[_loc7_]]._x + 60)) / (CS * 320) * 10 + _root.c_jav.cnt_frm * 10;
var _loc13_ = Math.sqrt(_root.c_rat.FF - 1200 + _root.c_rat.VV * _root.c_rat.VV * 0.7 * 0.7);
_loc13_ *= 0.7073882691671998;
var _loc23_ = Math.floor(_loc13_ * 0.7);
_loc13_ = _loc13_ * _loc23_ / 275 * 10;
var _loc8_ = _loc12_ / _loc13_ * 100;
if(_root.c_rat.max_record < _loc12_)
{
if(_root.sndplay)
{
_root.csnd.gotoAndPlay("s28");
}
_root.o_rcd._visible = true;
_root.o_rpr.gotoAndPlay(1);
}
if(_loc8_ >= 94)
{
if(_root.c_rat.rtype == 0)
{
_loc15_ = 30;
_loc19_ = 300;
_loc18_ = 4;
}
else if(_root.c_rat.rtype == 1)
{
_loc15_ = 100;
_loc19_ = 200;
_loc18_ = 3;
}
else if(_root.c_rat.rtype == 2)
{
_loc15_ = 40;
_loc19_ = 100;
_loc18_ = 8;
}
_root.c_rat.VV += Math.floor(_loc15_ * (6 - (100 - _loc8_))) / 600;
_root.c_rat.FF += Math.floor(_loc19_ * (6 - (100 - _loc8_))) / 6;
_root.c_rat.DD += Math.floor(_loc18_ * (6 - (100 - _loc8_))) / 600;
if(_loc8_ > 92)
{
if(_root.sndplay)
{
_root.csnd.gotoAndPlay("s28");
}
_root.state_bras = 2;
_root.SetEggsFlowers();
var _loc5_ = 0;
while(_loc5_ < 10)
{
_root.o_flw[_loc5_].play();
_loc5_ = _loc5_ + 1;
}
}
}
_loc8_ = _loc12_ / _root.c_rat.max_record * 100;
if(_loc8_ < 41 && _root.c_rat.max_record > 0)
{
if(_root.sndplay)
{
_root.csnd.gotoAndPlay("s17");
}
_root.state_bras = 1;
_root.SetEggsTomato();
_loc5_ = 0;
while(_loc5_ < 10)
{
_root.o_etm[_loc5_].play();
_loc5_ = _loc5_ + 1;
}
}
_root.o_rsr.gotoAndPlay("forward");
_root.c_jav.rat_src_now = Math.floor(_loc12_ * 10) / 10;
if(_root.c_rsr.last_bras <= Math.floor(_loc12_ * 10) / 10)
{
_root.c_rsr.dir_move = 1;
if(_root.o_rsr._x < -70 || _root.c_rat.last_bras == -1)
{
_root.o_rsr._x = -70;
}
_root.o_rsr.gotoAndPlay("forward");
}
else
{
if(_root.c_rsr.last_bras - Math.floor(_loc12_ * 10) / 10 > 15)
{
_root.o_rsr._x = 650;
}
_root.c_rsr.dir_move = 2;
_root.o_rsr.gotoAndPlay("back");
}
_root.o_rsr._y = 375;
_root.c_rsr.last_bras = Math.floor(_loc12_ * 10) / 10;
if(_root.c_rsr.last_bras < 0)
{
_root.c_rsr.last_bras = -1;
}
_root.state = 4;
_root.sndscore(_root.c_jav.rat_src_now);
if(_root.c_jav.rat_src_now > _root.c_rat.max_record)
{
_root.c_rat.max_record = _root.c_jav.rat_src_now;
_root.o_tbl[1].imax = _root.c_jav.rat_src_now;
if(_root.c_jav.rat_src_now == Math.floor(_root.c_jav.rat_src_now))
{
_root.o_tbl[1].imax = _root.c_jav.rat_src_now + ".0";
}
}
}
}
_root.c_jav.FlyRotation();
_root.o_jav._rotation = _root.c_jav.now_rotat;
}
if(_root.state == 4 || _root.state == 5)
{
var _loc28_ = _root.o_jav._x + 77.5 * Math.cos((80 - _root.o_jav._rotation) / 180 * 3.14);
var _loc6_ = undefined;
var _loc4_ = 0;
while(_loc4_ < 2)
{
_loc6_ = (_root.c_jav.step_metr - (2 - _loc4_)) * 10;
if(_loc6_ >= 30)
{
if(_loc6_ <= _root.c_jav.cnt_frm * 10)
{
_root.o_bln[_root.ar_mv[_loc4_]]._y -= 4;
}
}
_loc4_ = _loc4_ + 1;
}
}
if(_root.state == 4)
{
if(_root.c_rsr.dir_move == 1)
{
if(_root.o_rsr._x - 50 < _root.c_jav.xkon)
{
_root.o_rsr._x += 5;
var _loc11_ = _root.c_jav.xkon - (_root.o_rsr._x - 50);
_loc11_ = _root.c_jav.rat_src_now - Math.floor(_loc11_ / 275 * 100) / 10;
if(_loc11_ > _root.c_jav.rat_src_now)
{
_loc11_ = _root.c_jav.rat_src_now;
}
if(_loc11_ > 0)
{
var _loc17_ = _loc11_;
var _loc21_ = undefined;
_loc21_ = Math.floor((_loc17_ - Math.floor(_loc17_)) * 10);
_root.o_rsr.resl = Math.floor(_loc17_) + "." + _loc21_;
if(_root.c_jav.rat_src_now == _loc11_)
{
_root.o_rsr.resl = _root.c_jav.rat_src_now;
if(_root.c_jav.rat_src_now == Math.floor(_root.c_jav.rat_src_now))
{
_root.o_rsr.resl = _root.c_jav.rat_src_now + ".0";
}
}
}
else
{
_root.o_rsr.resl = "0.0";
}
}
else if(_root.o_rsr._currentframe < 17)
{
_root.o_rsr.gotoAndPlay("rstop");
_root.btnmenu._visible = true;
}
}
else if(_root.c_rsr.dir_move == 2)
{
if(_root.o_rsr._x - 50 > _root.c_jav.xkon)
{
_root.o_rsr._x -= 5;
_loc11_ = _root.o_rsr._x - 50 - _root.c_jav.xkon;
_loc11_ = _root.c_jav.rat_src_now + Math.floor(_loc11_ / 275 * 100) / 10;
if(_loc11_ < _root.c_jav.rat_src_now)
{
_loc11_ = _root.c_jav.rat_src_now;
}
if(_loc11_ > 0)
{
_loc17_ = _loc11_;
_loc21_ = Math.floor((_loc17_ - Math.floor(_loc17_)) * 10);
_root.o_rsr.resl = Math.floor(_loc17_) + "." + _loc21_;
if(_root.c_jav.rat_src_now == _loc11_)
{
_root.o_rsr.resl = _root.c_jav.rat_src_now;
if(_root.c_jav.rat_src_now == Math.floor(_root.c_jav.rat_src_now))
{
_root.o_rsr.resl = _root.c_jav.rat_src_now + ".0";
}
}
}
else
{
_root.o_rsr.resl = "0.0";
}
}
else if(_root.o_rsr._currentframe >= 25)
{
_root.o_rsr.gotoAndPlay("rstop");
_root.btnmenu._visible = true;
}
}
}
if(_root.o_frm[_root.ar_mv[0]]._x <= -320 * CS)
{
_root.o_frm[_root.ar_mv[0]]._x += 960 * CS;
if(_root.o_lnb._x < -100)
{
_root.o_msb[_root.ar_mv[0]]._visible = true;
_root.o_bln[_root.ar_mv[0]]._visible = true;
_root.c_jav.step_metr = _root.c_jav.step_metr + 1;
_root.o_bln[_root.ar_mv[0]].vl = "" + _root.c_jav.step_metr * 10;
if(_root.o_tbl[2]._x < -50)
{
_root.o_tbl[2]._x = 600;
if(_root.o_tbl[2].cload._framesloaded == _root.o_tbl[2].cload._totalframes)
{
var _loc26_ = Math.floor(Math.random() * _root.o_tbl[2].cload._totalframes) + 1;
_root.o_tbl[2].cload.gotoAndStop(_loc26_);
_root.o_tbl[2].cdflt._visible = false;
_root.o_tbl[2].cload._visible = true;
}
else
{
_root.o_tbl[2].cload._visible = false;
_root.o_tbl[2].cdflt._visible = true;
}
}
if(_root.c_jav.step_metr * 10 < _root.c_rat.max_record)
{
_root.o_bln[_root.ar_mv[0]].gotoAndStop(1);
}
else
{
_root.o_bln[_root.ar_mv[0]].gotoAndStop(2);
}
var _loc14_ = _root.o_frm[2]._y;
if(_loc14_ - 284 > 300 && _root.c_jav.all_frm >= _root.c_jav.step_metr)
{
_loc14_ = _loc14_ - 284 - 300;
}
else
{
_loc14_ = 0;
}
_root.o_bln[_root.ar_mv[0]]._y = -250 - _loc14_;
}
else
{
_root.o_msb[_root.ar_mv[0]]._visible = false;
_root.o_bln[_root.ar_mv[0]]._visible = false;
_root.c_jav.step_metr = 2;
}
var _loc22_ = _root.ar_mv[0];
_root.ar_mv[0] = _root.ar_mv[1];
_root.ar_mv[1] = _root.ar_mv[2];
_root.ar_mv[2] = _loc22_;
}
_root.c_jav.onTimer(_root.state);
if(_root.state == 2 || _root.state == 3 && _root.o_rat.body_brs._visible == true)
{
_root.o_jav._x = 318 + _root.o_rat.body_brs.jx + 30;
_root.o_jav._y = 322 + _root.o_rat.body_brs.jy;
_root.c_jav.SetAngle();
_root.o_jav._rotation = _root.c_jav.angle;
}
_loc3_ = Math.round(_root.c_rat.step_dx);
if(_root.state == 3)
{
_loc2_ = 0;
while(_loc2_ < 3)
{
_root.o_frm[_loc2_]._x -= _loc3_;
_loc2_ = _loc2_ + 1;
}
_loc2_ = 0;
while(_loc2_ < 5)
{
_root.o_cld[_loc2_]._x -= _loc3_;
if(_root.o_cld[_loc2_]._x < -200)
{
_root.o_cld[_loc2_]._x = 600;
}
_loc2_ = _loc2_ + 1;
}
_root.o_rsr._x -= _loc3_;
if(_root.c_rat.leg_run == true)
{
if(_root.c_rat.dx_usk - 11 * _root.c_rat.ADD_TO_USK > 0)
{
_root.c_rat.dx_usk -= 11 * _root.c_rat.ADD_TO_USK;
}
else
{
_root.c_rat.dx_usk = 0;
_root.btnmenu._visible = true;
}
if(_loc3_ < 5)
{
if(_root.o_rat._currentframe < 74)
{
_root.o_rat.gotoAndPlay("torm");
if(_root.o_jav._visible == true)
{
_root.o_jav._visible = false;
}
}
if(_loc3_ <= 0)
{
if(_root.sndplay)
{
_root.csnd.gotoAndPlay("s10");
}
_root.state = 7;
_root.c_rat.otdih = 60;
}
}
else
{
_root.c_rat.now_frm += _root.c_rat.dx_usk;
if(Math.round(_root.c_rat.now_frm) > 8)
{
_root.c_rat.now_frm = 1;
}
_loc20_ = Math.round(_root.c_rat.now_frm);
_root.o_rat.legs_run.gotoAndStop("f_" + _loc20_);
if(_root.o_rat.body_run._visible == true)
{
_root.o_rat.body_run.gotoAndStop("f_" + _loc20_);
}
}
}
_root.o_lnb._x -= _loc3_;
_root.c_rat.onTimerZamedl();
}
if(_root.state == 7)
{
_root.c_rat.otdih--;
if(_root.c_rat.otdih <= 0)
{
if(_root.sndplay)
{
_root.csnd.gotoAndPlay("s10");
}
_root.o_rat.gotoAndPlay("vdoh");
_root.c_rat.otdih = 50 + Math.floor(Math.random() * 90);
}
}
}
function MouseClickP(x, y)
{
if(_root.c_menu.state == 1 && (x != -1 && y != -1))
{
return undefined;
}
if(_root.o_rsr.rrun == true && (x != -1 && y != -1))
{
return undefined;
}
var _loc6_ = undefined;
var _loc10_ = undefined;
var _loc4_ = undefined;
var _loc24_ = "";
_loc4_ = _root.c_rat.VV;
_loc6_ = Math.floor((_loc4_ - Math.floor(_loc4_)) * 10);
_loc10_ = Math.floor((_loc4_ - Math.floor(_loc4_)) * 100) - _loc6_ * 10;
_root.o_tbl[0].pspd = Math.floor(_loc4_) + "." + _loc6_ + "" + _loc10_;
_loc4_ = _root.c_rat.FF / 100;
_loc6_ = Math.floor((_loc4_ - Math.floor(_loc4_)) * 10);
_loc10_ = Math.floor((_loc4_ - Math.floor(_loc4_)) * 100) - _loc6_ * 10;
_root.o_tbl[0].pstr = Math.floor(_loc4_) + "." + _loc6_ + "" + _loc10_;
_loc4_ = _root.c_rat.DD * 20;
_loc6_ = Math.floor((_loc4_ - Math.floor(_loc4_)) * 10);
_loc10_ = Math.floor((_loc4_ - Math.floor(_loc4_)) * 100) - _loc6_ * 10;
_root.o_tbl[0].pdex = Math.floor(_loc4_) + "." + _loc6_ + "" + _loc10_;
_root.o_rcd._visible = false;
if(_root.state == 0 && _root.o_rat.p_astart == false)
{
var _loc5_ = new Date();
var _loc14_ = "";
if(_loc5_.getUTCMonth() + 1 < 10)
{
_loc14_ = "0";
}
var _loc15_ = "";
if(_loc5_.getUTCDate() < 10)
{
_loc15_ = "0";
}
var _loc12_ = "";
if(_loc5_.getUTCHours() < 10)
{
_loc12_ = "0";
}
var _loc18_ = "";
if(_loc5_.getUTCMinutes() < 10)
{
_loc18_ = "0";
}
var _loc17_ = "";
if(_loc5_.getUTCSeconds() < 10)
{
_loc17_ = "0";
}
var _loc20_ = _loc5_.getUTCMonth() + 1;
_root.strdata = _loc5_.getUTCFullYear() + "-" + _loc14_ + _loc20_ + "-" + _loc15_ + _loc5_.getUTCDate() + "T" + _loc12_ + _loc5_.getUTCHours() + ":" + _loc18_ + _loc5_.getUTCMinutes() + ":" + _loc17_ + _loc5_.getUTCSeconds() + "Z";
trace(_root.strdata);
_root.o_rat.gotoAndPlay("astart");
_root.btnmenu._visible = false;
if(_root.sndplay)
{
_root.csnd.gotoAndPlay("s0");
}
_root.c_rat.SetSpeedPrir();
}
if(_root.state == 5)
{
if(_root.c_jav.fulltime - _root.c_jav.timefly <= 0)
{
_root.state = 4;
}
}
if(_root.state == 2)
{
if(Math.floor(89 - _root.c_jav.angle) > 15)
{
if(_root.sndplay)
{
_root.csnd.gotoAndPlay("s20");
}
_root.c_jav.cnt_frm = -1;
_root.o_rat.stop();
_root.o_rat.body_run.stop();
_root.o_rat.body_brs.stop();
var _loc9_ = Math.floor(89 - _root.c_jav.angle);
if(_loc9_ > 42 && _loc9_ < 48)
{
_loc9_ += Math.floor(Math.random() * 10) - 5;
}
var _loc7_ = _root.c_rat.spd_V + Math.floor(Math.random() * _root.c_rat.DD);
_loc7_ *= 0.67;
if(_loc7_ > 100)
{
G = 200 / _loc7_;
_loc7_ = 100;
}
else
{
G = 2;
}
var _loc16_ = Math.floor(Math.sqrt(_root.c_rat.FF - 1000 + _loc7_ * _loc7_));
var _loc13_ = _loc16_ * Math.cos(_loc9_ / 180 * 3.14);
var _loc11_ = _loc16_ * Math.sin(_loc9_ / 180 * 3.14) * 0.7;
_root.c_jav.SetDxDy(_loc13_,_loc11_);
_root.c_jav.SetTimeFly(Math.floor(2 * _loc11_ / G));
_root.c_jav.SetAnglRotation((15 + _root.c_jav.now_frm * 2 * 1.5) / _root.c_jav.timefly);
_root.c_jav.start_vy = _loc11_;
_root.c_jav.all_frm = Math.floor((2 * _loc11_ / G * _loc13_ - (_root.o_lnb._x - _root.o_jav._x)) / 275);
_root.c_rat.length_finish = Math.floor(_root.o_lnb._x - 278);
_root.c_jav.next_point = _root.o_lnb._x;
_root.state = 5;
}
}
if(_root.state == 1)
{
_root.o_rat.body_brs._visible = true;
_root.o_rat.body_brs.gotoAndPlay("start_br");
_root.o_rat.body_run._visible = false;
_root.o_jav._visible = true;
_root.state = 2;
}
if(_root.state == 4 || _root.state == 7 || (x == -1 || y == -1))
{
var _loc2_ = 0;
while(_loc2_ < 3)
{
_root.o_frm[_root.ar_mv[_loc2_]]._x = 320 * CS * _loc2_;
_root.o_frm[_loc2_]._y = 284;
_root.o_msb[_root.ar_mv[_loc2_]]._visible = false;
_root.o_bln[_root.ar_mv[_loc2_]]._visible = false;
_loc2_ = _loc2_ + 1;
}
_root.o_lnb._x = POS_LNB;
_root.o_rat.gotoAndPlay(1);
_root.o_rat.body_run._visible = false;
_root.o_rat.body_brs._visible = false;
_root.o_rat._x = 300 * CS;
_root.o_rat._y = 310;
_root.o_rat.gotoAndPlay(1);
_root.c_rat.SetDefault();
_root.c_jav.SetDefault();
_root.o_jav._visible = false;
_root.o_jav._x = 318;
_root.o_jav._y = 322;
_root.o_lnb._x = POS_LNB;
_root.o_lnb._y = 330;
_root.c_jav._y = 322;
_root.o_ln_hide._visible = false;
_root.o_lnb.ofire._visible = false;
_root.o_rpr.gotoAndStop(1);
_root.o_tbl[0]._x = 30;
_root.o_tbl[1]._x = 270;
_root.o_tbl[0]._y = 150;
_root.o_tbl[1]._y = 145;
_root.o_tbl[2]._x = 550 + Math.floor(Math.random() * 250);
if(_root.o_tbl[2].cload._framesloaded == _root.o_tbl[2].cload._totalframes)
{
var _loc21_ = Math.floor(Math.random() * _root.o_tbl[2].cload._totalframes) + 1;
_root.o_tbl[2].cload.gotoAndStop(_loc21_);
_root.o_tbl[2].cdflt._visible = false;
_root.o_tbl[2].cload._visible = true;
}
else
{
_root.o_tbl[2].cload._visible = false;
_root.o_tbl[2].cdflt._visible = true;
}
_root.o_tbl[2]._y = 175;
_root.SetRandPlanks();
_root.SetRatLenta();
if(_root.c_rsr.last_bras >= 0)
{
var _loc19_ = Math.floor(_root.c_rsr.last_bras / 10);
_root.o_rsr._x = _root.o_lnb._x + 2 + 275 * _loc19_ + 60 + Math.floor((_root.c_rsr.last_bras - _loc19_ * 10) * 27.5);
}
else
{
_root.o_rsr._x = -70;
}
if(_root.state_bras == 1)
{
SetEggsTomato();
}
if(_root.state_bras == 2)
{
SetEggsFlowers();
}
_root.state_bras = 0;
var _loc8_ = [-40,-80,-100,-135,-200];
var _loc3_ = 0;
while(_loc3_ < 5)
{
_root.o_cld[_loc3_]._y = _loc8_[_loc3_];
_loc3_ = _loc3_ + 1;
}
_root.state = 0;
}
if(exitclick == 1)
{
exitclick = 0;
_root.btnmenu._visible = true;
}
}
function SetEggsTomato()
{
var _loc3_ = 0;
var _loc2_ = 0;
while(_loc2_ < 10)
{
if(_loc2_ > 4)
{
_loc3_ = 1010;
}
_root.o_etm[_loc2_]._y = 550 - Math.floor(Math.random() * 120) - _loc3_ * 1.5;
if(_loc3_ == 0)
{
_root.o_etm[_loc2_]._x = 200 + 30 * _loc2_ + 15 - Math.floor(Math.random() * 30);
}
else
{
_root.etm_endfall[_loc2_ - 5] = 300 + Math.floor(Math.random() * 50);
_root.o_etm[_loc2_]._x = 100 + 81 * (_loc2_ - 5) + 30 - Math.floor(Math.random() * 60);
_root.o_etm[_loc2_]._y -= Math.floor(Math.random() * 400);
}
_root.o_etm[_loc2_].gotoAndStop(1 + Math.floor(Math.random() * 25));
_loc2_ = _loc2_ + 1;
}
}
function SetEggsFlowers()
{
var _loc3_ = 0;
var _loc2_ = 0;
while(_loc2_ < 10)
{
if(_loc2_ > 4)
{
_loc3_ = 1021;
}
_root.o_flw[_loc2_]._y = 550 - Math.floor(Math.random() * 120) - _loc3_ * 1.5;
if(_loc3_ == 0)
{
_root.o_flw[_loc2_]._x = 200 + 30 * _loc2_ + 15 - Math.floor(Math.random() * 30);
}
else
{
_root.etm_endfall[_loc2_ - 5] = 300 + Math.floor(Math.random() * 50);
_root.o_flw[_loc2_]._x = 100 + 81 * (_loc2_ - 5) + 30 - Math.floor(Math.random() * 60);
_root.o_flw[_loc2_]._y -= Math.floor(Math.random() * 400);
}
_root.o_flw[_loc2_].gotoAndStop(1 + Math.floor(Math.random() * 25));
_loc2_ = _loc2_ + 1;
}
}
function SetRandPlanks()
{
var _loc2_ = [];
var _loc5_ = 0;
while(_loc5_ < 2)
{
_loc2_[_loc5_] = new Number();
_loc5_ = _loc5_ + 1;
}
var _loc4_ = 0;
while(_loc4_ < 3)
{
do
{
_loc2_[0] = Math.floor(Math.random() * 5);
}
while(_loc2_[0] == 0);
do
{
_loc2_[1] = Math.floor(Math.random() * 5);
}
while(_loc2_[1] == 0 || Math.abs(_loc2_[0] - _loc2_[1]) <= 1);
var _loc3_ = 0;
while(_loc3_ < 2)
{
_root.o_brd[10 * _loc4_ + _loc3_]._x = _loc2_[_loc3_] * 64 * CS;
_loc3_ = _loc3_ + 1;
}
_loc4_ = _loc4_ + 1;
}
}
function SetRatLenta()
{
if(_root.c_rat.rtype == 0)
{
_root.o_rat.bngrn._visible = true;
_root.o_rat.bnred._visible = false;
_root.o_rat.bnblu._visible = false;
_root.o_rat.bngrn2._visible = true;
_root.o_rat.bnred2._visible = false;
_root.o_rat.bnblu2._visible = false;
_root.o_rat.body_brs.bngrn._visible = true;
_root.o_rat.body_brs.bnred._visible = false;
_root.o_rat.body_brs.bnblu._visible = false;
_root.o_rat.body_run.bngrn._visible = true;
_root.o_rat.body_run.bnred._visible = false;
_root.o_rat.body_run.bnblu._visible = false;
}
else if(_root.c_rat.rtype == 1)
{
_root.o_rat.bngrn._visible = false;
_root.o_rat.bnred._visible = false;
_root.o_rat.bnblu._visible = true;
_root.o_rat.bngrn2._visible = false;
_root.o_rat.bnred2._visible = false;
_root.o_rat.bnblu2._visible = true;
_root.o_rat.body_brs.bngrn._visible = false;
_root.o_rat.body_brs.bnred._visible = false;
_root.o_rat.body_brs.bnblu._visible = true;
_root.o_rat.body_run.bngrn._visible = false;
_root.o_rat.body_run.bnred._visible = false;
_root.o_rat.body_run.bnblu._visible = true;
}
else if(_root.c_rat.rtype == 2)
{
_root.o_rat.bngrn._visible = false;
_root.o_rat.bnred._visible = true;
_root.o_rat.bnblu._visible = false;
_root.o_rat.bngrn2._visible = false;
_root.o_rat.bnred2._visible = true;
_root.o_rat.bnblu2._visible = false;
_root.o_rat.body_brs.bngrn._visible = false;
_root.o_rat.body_brs.bnred._visible = true;
_root.o_rat.body_brs.bnblu._visible = false;
_root.o_rat.body_run.bngrn._visible = false;
_root.o_rat.body_run.bnred._visible = true;
_root.o_rat.body_run.bnblu._visible = false;
}
}
function CalcURLLink()
{
}
function sndscore(ass)
{
aa = Number(ass);
var _loc3_ = new LoadVars();
_loc3_.onLoad = function(success)
{
trace("success=" + success);
};
var _loc2_ = new LoadVars();
_loc2_.score = aa;
_loc2_.evttype = "end";
_loc2_.gameid = 241;
_loc2_.gamestarttime = _root.strdata;
trace("================");
trace("send_lv.score=" + _loc2_.score);
trace("send_lv.evttype=" + _loc2_.evttype);
trace("send_lv.gameid=" + _loc2_.gameid);
trace("send_lv.gamestarttime=" + _loc2_.gamestarttime);
_loc2_.sendAndLoad("https://www.zapak.com/getscore.z",_loc3_,"POST");
}
var LINK_BANERS_SWF = "http://msnbroadcast.com/rats_spears/UPDATE/rats_logo.swf";
var LINK_TOP_SWF = "http://msnbroadcast.com/rats_spears/UPDATE/top_players.swf";
var LINK_DATA_TOP = "http://msnbroadcast.com/rats_spears/UPDATE/data1000.dat";
var CS = 0.86;
var G = 2;
var o_frm = [];
var o_bgr;
var o_brd = [];
var o_plk = [];
var o_gr = [];
var o_tbl = [];
var o_msr = [];
var o_rat;
var o_ln_hide;
var o_msb = [];
var o_bln = [];
var o_rsr;
var c_rsr = new CRatsrc();
var o_cld = [];
var o_etm = [];
var etm_endfall = [];
var o_flw = [];
var o_jav;
var c_jav = new CJavelin();
var c_menu = new CMenu();
var o_lnb;
var uuu = 0;
var s1 = 0;
var s2 = 0;
var sset = 21;
var W_WIDTH = 755;
var W_HEIGHT = 160;
var state = 0;
var state_bras = 0;
var pos_mus = [];
var i = 0;
while(i < 3)
{
pos_mus[i] = new CPoint();
i++;
}
pos_mus[0].SetPoint(10,0);
pos_mus[1].SetPoint(185,20);
pos_mus[2].SetPoint(80,40);
var ar_mv = new Array(0,1,2);
var c_rat = new CRat();
var MAX_RATRUN = 1500 * CS;
var POS_LNB = 1660 * CS + 5;
var exitclick = 0;
var stexithelp = 0;
var sndplay = true;
var fbnr = 0;
var topclip_def = 1;
var topclip_3data = 0;
startGame();
var yy = 0;
if(strdata != undefined)
{
return undefined;
}